import request from '@/utils/request'

// 查询工作报告列表
export function listDailyReports(query) {
  return request({
    url: '/media/dailyReports/list',
    method: 'get',
    params: query
  })
}

// 查询工作报告详细
export function getDailyReports(id) {
  return request({
    url: '/media/dailyReports/' + id,
    method: 'get'
  })
}

// 新增工作报告
export function addDailyReports(data) {
  return request({
    url: '/media/dailyReports',
    method: 'post',
    data: data
  })
}

// 修改工作报告
export function updateDailyReports(data) {
  return request({
    url: '/media/dailyReports',
    method: 'put',
    data: data
  })
}

// 删除工作报告
export function delDailyReports(id) {
  return request({
    url: '/media/dailyReports/' + id,
    method: 'delete'
  })
}
